const app = getApp()

Page({
  data: {
    inputValue1: '',
    inputValue2: '',
    inputValue3: ''
  },
  handleInput1(e) {
    this.setData({
      inputValue1: e.detail.value
    })
  },
  handleInput2(e) {
    this.setData({
      inputValue2: e.detail.value
    })
  },
  handleInput3(e) {
    this.setData({
      inputValue3: e.detail.value
    })
  },
  handleConfirm() {
    const { inputValue1, inputValue2, inputValue3 } = this.data
    if (inputValue1 && inputValue2 && inputValue3) {
      wx.navigateTo({
        url: `/pages/TencentCloud/TencentCloud?inputValue1=${inputValue1}&inputValue2=${inputValue2}&inputValue3=${inputValue3}`
      })
    } else {
      wx.showToast({
        title: '请填写所有阈值',
        icon: 'none',
        duration: 2000
      })
    }
  }
})
